using Project_Schedule.Domain.BackGround.com.core.Interface;
using Project_Schedule.Domain.BackGround.com.core.utils;
using Project_Schedule.Domain.Request;
using Project_Schedule.Model;

namespace Project_Schedule.Domain.BackGround.com.core.Service;

public class Bg_UserQuerySassService: IBackgroundUserQuerySass
{
    public JRequest QueryBackgroundUser(int page, int size) => JRequest
        .Ok(_db.BackgroundUsers?.TakePage(page));

    private readonly DataDbContext _db;

    public Bg_UserQuerySassService(DataDbContext db)
    {
        _db = db;
    }
}